package flirtme.model;

import java.util.List;

import android.location.Location;
import android.location.LocationManager;

public class BroadcastContact {

	private String _ID;
	private String _name;
	private String _address;
	private String _phone;
	private List<String> _tags;
	private Location _location;
	protected String _imageUrl;
	
	public BroadcastContact(String _ID, String _name, String _address, String _phone, String _latitude, String _longitude, String _imageUrl) {
		super();
		this._ID = _ID;
		this._name = _name;
		this._address = _address;
		this._phone = _phone;
		this._location = new Location(LocationManager.GPS_PROVIDER);
		_location.setLatitude( Double.parseDouble(_latitude) );
		_location.setLongitude( Double.parseDouble(_longitude) );
		this._imageUrl = _imageUrl;
	}

	public BroadcastContact(){}

	public Location getLocation() {
		return _location;
	}

	public void setLocation(String latitude, String longitude) {
		_location = new Location(LocationManager.GPS_PROVIDER);
		_location.setLatitude( Double.parseDouble(latitude) );
		_location.setLongitude( Double.parseDouble(longitude) );
	}
	
	public String getID(){
		return _ID;
	}

	public String getName() {
		return _name;
	}

	public void setName(String _name) {
		this._name = _name;
	}

	public String getAddress() {
		return _address;
	}

	public void setAddress(String _address) {
		this._address = _address;
	}

	public String getPhone() {
		return _phone;
	}

	public void setPhone(String _phone) {
		this._phone = _phone;
	}

	public List<String> getTags() {
		return _tags;
	}

	public void setTags(List<String> _tags) {
		this._tags = _tags;
	}
	
	public String getImageUrl() {
		return _imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		_imageUrl = imageUrl;
	}
	
}
